import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: () => import("../views/Home.vue"),
    meta: {
      title: "首页",
    },
  },
  {
    path: "/details",
    name: "Details",
    component: () => import("../views/details/details.vue"),
    meta: {
      title: "详情",
    },
  },
  {
    path: "/listDetails",
    name: "ListDetails",
    component: () => import("../views/listDetails/listDetails.vue"),
    meta: {
      title: "列表详情",
    },
    
  }
];

const router = new VueRouter({
  routes,
});

export default router;
